package com.bicntech.system.dto;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class InfieldInspectAddDTO implements Serializable {
    private static final long serialVersionUID = -319446840526982831L;

    /**
     * 检查单id
     */
    @NotNull
    private Long type;

    /**
     * 检查日期
     */
    @NotNull
    // @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime inspectDate;


    /**
     * 适用车型
     */
    @NotBlank
    private String applicableModels;

    /**
     * 车号
     */
    @NotBlank
    private String wagonNumber;

    /**
     * 检查项
     */
    @NotNull
    private List<InfieldInspectDataDTO> inspectTerm;


    /**
     * 备注
     */
    private String remarks;


    /**
     * 车辆摩托小时
     */
    @NotNull(message = "vehicleMotorcycleHours is not null")
    @Digits(integer = 9, fraction = 3, message = "车辆摩托小时参数异常，请填写合理数值")
    private BigDecimal vehicleMotorcycleHours;


    /**
     * 补加油量
     */
    @NotNull(message = "refuelingVolume is not null")
    @Digits(integer = 9, fraction = 3, message = "补加油量参数异常，请填写合理数值")
    private BigDecimal refuelingVolume;

}
